package com.springstudy.service.impl;


import com.springstudy.mapper.UserMapper;
import com.springstudy.pojo.User;
import com.springstudy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Tamako
 * @since 2025/1/9 15:18
 */
//@Component("userService")
@Service("userService")
public class UserServiceImpl implements UserService {

//    @Value("${jdbc.driver}")
//    private String username;
    //    @Autowired
//    @Qualifier("userDao2")
//    @Resource(name = "userDao2")
//    private UserDao userDao;

    @Autowired
    private UserMapper userMapper;

    @Override
    public void show() {
        for (User user : userMapper.findAll()) {
            System.out.println(user);
        }

    }
}
